using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CSharpCustomControls
{
    [ToolboxData("<{0}:FirstSample runat=server></{0}:FirstSample>")]
    public class FirstSample : WebControl
    {
    protected override void CreateChildControls()
{
   LiteralControl lt;
   System.Web.UI.WebControls.TextBox txt;

   lt = new LiteralControl("<b>Value: ");
   this.Controls.Add(lt);

   txt = new System.Web.UI.WebControls.TextBox();
   txt.Text = "Hello, World";
   txt.ID = "txtInput";
   this.Controls.Add(txt);

   lt = new LiteralControl("</b>");
   this.Controls.Add(lt);
}

    }
}
